module.exports = [
  {
    name: 'default',
    type: process.env.DB_TYPE, //数据库类型
    host: process.env.DB_HOST, //数据卡主机名
    port: Number(process.env.DB_PORT), //数据库端口
    database: process.env.DB_DATABASE, //数据库名
    username: process.env.DB_USERNAME,  //用户名
    password: process.env.DB_PASSWORD, //用户密码
    logging: false,
    entities: [
      // 'dist/src/entity/**/*.entity.{ts,js}',
      'dist/src/modules/**/*.entity.{ts,js}'
    ],
    migrations: [
      'dist/src/migration/*.{ts,js}'
    ],
    subscribers: [
      'dist/src/subscriber/**/*.{ts,js}'
    ],
    cli: {
      'entitiesDir': 'src/entity',
      'migrationsDir': 'src/migration',
      'subscribersDir': 'src/subscriber'
    }
  }
]